﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Registry
{
    public class ServiceRegistry
    {
        private static Type serviceType;

        public static void RegisterService(Type serviceType)
        {
            ServiceRegistry.serviceType = serviceType;
        }

        public static IService GetService()
        {
            return (IService)Activator.CreateInstance(serviceType);
        }
    }
}
